package com.chey.dao;

import com.chey.pojo.META;
import com.chey.pojo.gtls.DFLT;
import com.chey.pojo.gtls.GATE;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author JanYao
 * @version 0.1
 */
public interface GtlsDao {


    @Select("insert into MSG_DFME_GTLS values(#{meta.sender},#{meta.receiver},#{meta.sequence},#{meta.dTime},#{meta.bType},#{meta.sType},#{dflt.FLID}, #{dflt.FFID}, #{dflt.FIDE}, #{dflt.FATT},#{uuid})")
    public Integer addGtls(@Param("uuid")String uuid, @Param("meta")META meta,@Param("dflt") DFLT dflt);


    @Select("insert into DFME_GTLS_GATE values (#{uuid},#{gate.GTNO}, #{gate.ID}, #{gate.CODE}, #{gate.GTAT}, #{gate.ESTR}, #{gate.EEND}, #{gate.RSTR}, #{gate.REND}, #{gate.BTSC})")
    public Integer addGate(@Param("uuid") String uuid,@Param("gate") GATE gate);


}
